All Questions
18 questions
0votes
1answer
103views
du -h only show folders but not files, how to show all?
I don't know what's going on with my centos 7 machine but seems like du -h /path only shows folders, not files, and it's annoying. I want to find all the files and folders at a specific depth and sort ...
-1votes
1answer
122views
how can i use 'memusage' command on Centos 7?
When I input memusage command to my terminal on Centos7, it will show bash:memusage: command is not find. How can I use this command?
1vote
1answer
2kviews
systemctl: unrecognized option '--value'
I am using the systemctl command to fetch only the value of a property. And executing the below command: systemctl show -p ActiveState --value servicename I'm getting this error: systemctl: ...
0votes
1answer
272views
blocking commands as non-root
This is a very specific request, I am afraid. I am a non-root user at a CentOS Linux 7 machine. The admin team is normally very helpful but there is zero response for that case, unfortunately. So I ...
0votes
1answer
1kviews
How to Rename middle part of multiple files [duplicate]
I have some numeric files like: test01-aaa.txt test02-bbb.txt test03-ccc.txt test04-ddd.txt I need to remove aaa,bbb,ccc,ddd part from the name. what is the best way i can do? I tried with 'rename' ...
0votes
3answers
3kviews
Install the PHP drivers for Microsoft SQL Server
I'm using web server nginx, php 7.1 fpm and laravel in Centos 7. I want to install SQL Server following the official installation tutorial for Linux but I'm confused with this command: echo extension=...
3votes
1answer
1kviews
Can not ssh to server without a password
I have two VM machines, and I want them to run a remote command on each other via ssh. I ran these commands on the first machine: ssh-keygen -t rsa ssh-copy-id 192.168.254.148 Then I ran this command ...
0votes
2answers
2kviews
How to add multiple directories like the name 1-100 in one command
I need to create multiple directories using one command. Is it possible? Like directory name starts from 1-100. mkdir 1..100
4votes
4answers
3kviews
What do those numbers in the "uname -r" output mean?
When I run "uname -r" command on CentOS I get the following output: 3.10.0-693.21.1.el7.x86_64 What does the part of the output "693.21.1" mean?
1vote
3answers
2kviews
Can't install XPad on CentOS 7
I've download the xpad-5.0.0.tar.bz2 from here. And I follow the README in it which tells me to run ./configure first then run make and make install, but here is the issue I'm facing. When I run ./...
1vote
1answer
31views
Original Centos 6 version
Is there a command on Centos 6 that tells me which version was originally installed? I have yum updated to 6.9. But is there a way to find what version was originally installed before any yum updates?...
-2votes
1answer
194views
Same Linux command with different results [closed]
I just started using Linux and so far, I've only managed to get the server installed. My lecturer asked me the question below and I have no idea about it as I haven't experienced such. Could anyone ...
1vote
0answers
1kviews
Email not received with mail command from terminal in CentOS
I am trying to send mail with the following command: echo "Hello" | mail -s "Hello" [email protected] and than checking the exit status as: echo $? which outputs 0 Of course myaddr and ...
1vote
2answers
9kviews
Downgrade Centos 7.2 to 7.1
I am currently using Centos 7.2.1511(check from file /etc/redhat-release) and trying to downgrade it to Centos 7.1.1503 (due to some package installation issue in centos 7.2) using the command yum ...
1vote
4answers
2kviews
How to delete files from a directory based on the contents of a gzipped tar file?
Given that I: have a directory that contains over 1000 files have a gzip'ed tar file that contains a subset of those files (x.tgz) What is the single command line (if it is possible) that will read ...